package org.microservice.system.service;

import com.baomidou.mybatisplus.service.IService;
import org.microservice.common.bean.RoleVo;
import org.microservice.common.util.R;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/6/20
 * Time: 15:51
 * To change this template use File | Settings | File Templates.
 * Description:
 */
public interface SysRoleService extends IService<RoleVo>{
    List<RoleVo> getAllRoles();


    List<RoleVo> getUserRoleByUserId(int id);

    List<RoleVo> getRoleListPage(Map<String, Object> params);

    int getRoleListPageTotal(Map<String, Object> params);

    R deleteRole(Serializable roleId);

    R assignMenus(RoleVo roleVo);

    List<RoleVo> getRolesByUserName( String userName);
}
